#pragma once

#include "cocos2d.h"
USING_NS_CC;
class GameUI :public cocos2d::Layer
{
protected:
	GameUI();
	~GameUI();
public:
	CREATE_FUNC(GameUI);

	virtual	bool	init(void);
	virtual	void	update(float dt);

protected:
	void			OnMouseMove(EventMouse* ev);
private:
	void			initHeroHead(void);
	void			initPetHead(void);
	void			initMapInfo(void);
public:
	void			onClickHero(void);
	void			onClickPet(void);

	void			showHPInfo(void);
	void			showMPInfo(void);
	void			showSPInfo(void);
	void			showEXPInfo(void);
	void			showPetHPInfo(void);
	void			showPetMPInfo(void);
	void			showPetEXPInfo(void);
	void			hideInfo(void);
private:
	LayerColor*		_layerHP;
	LayerColor*		_layerHPLimit;
	LayerColor*		_layerMP;
	LayerColor*		_layerSP;
	LayerColor*		_layerEXP;
	LayerColor*		_layerPetHP;
	LayerColor*		_layerPetMP;
	LayerColor*		_layerPetEXP;
	bool			_hitHero;
	bool			_hitPet;
};